package com.macro.cloud.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * Created by macro on 2019/8/29.
 */
@RestController
@RequestMapping("/test")
public class TestController {
    private Logger LOGGER = LoggerFactory.getLogger(this.getClass());

    //http://localhost:8888/boot-demo/test/hello
    @GetMapping("/hello")
    public String hello() {

        LOGGER.info("请求过来了....当前时间: {}", (new Date()).toString());
        return "hello-TfffestController+提交-9-个更新测试beta->" + (new Date()).toString();
    }

}
